Adding Your Own CSS with custom.scss
Since 2026.1, the WebWorks Reverb 2.0 format includes a SASS file reserved for your own rules, custom.scss. It compiles to css/custom.css, and every page template links that stylesheet last: the content page, the splash page, the not-found page, popups, the search page, and the top-level entry file. Because it loads after all of the stock stylesheets, a rule you write in custom.scss wins any contest with a stock rule of equal specificity. You do not need to raise specificity artificially, and you do not need to override an entry point such as skin.scss or webworks.scss just to add a rule.
As installed, the file contains nothing but the variable imports:
@import "functions";
@import "colors";
@import "fonts";
@import "icons";
@import "sizes";
@import "borders";These imports produce no CSS of their own. They make every skin variable available inside custom.scss, and they pick up any variable overrides you have already made in _colors.scss, _sizes.scss, _borders.scss, _fonts.scss, or _icons.scss. Your rules can therefore reference the same values the rest of the layout uses, rather than repeating literal colors and sizes.
To add your own CSS rules to WebWorks Reverb 2.0
In your Stationery design project, on the View menu, click Project Directory. For more information about override files and locations, see Stationery, Projects, and Overrides.
If you want your rules to apply to all WebWorks Reverb 2.0 targets, create the
Formats\WebWorks Reverb 2.0\Pages\sassfolder in your<projectname>folder, where<projectname>is the name of your ePublisher project.If you want your rules to apply to one WebWorks Reverb 2.0 target, create the
Targets\<Target Name>\Pages\sassfolder in your<projectname>folder, where<Target Name>is the name of the specific target.Copy the
custom.scssfile from the following folder to the sass override folder you created within your project folder:Program Files\WebWorks\ePublisher Designer\Formats\WebWorks Reverb 2.0\Pages\sassOpen the copied
custom.scssfile in a text editor and add your CSS rules below the@importstatements.Save and close the
custom.scssfile.Regenerate your project to review the changes.
Note: Your copy replaces the installed
custom.scssentirely, so keep the@importstatements at the top of the file. Rules that should apply only when a reader prints belong incustom.scssas well, inside an@media printblock.